package enemies 
{
	/**
	 * ...
	 * @author Excel Excel
	 */
		import flash.display.*;
		import flash.geom.ColorTransform;
		import emb.SoundLib;
		
	public class MovingMine extends Follower
	{
		
		public function MovingMine(stage: Stage, t: Player) 
		{
			super(stage, t, 3.0);
			MaskInteract = 1 | 2;
			
		//	trace("moving mine's ready!");
		}
		
		override public function Interact(o:MovingCircle):Boolean
		{
			if (super.Interact(o))
			{
				o.Damage(60);
				MaskInteract = 0;//Never more
				MaskPublic = 0;//No colliding with anyone
				this.Damage(0xf1c1);
				SoundLib.Instance().PlaySound(x,y,SoundLib.SBlowUp);
				return true;
			}
			return false;
		}
		
		override protected function Draw():void
		{
			graphics.clear();
			graphics.beginFill(0xAA5500);
			graphics.drawCircle(0, 0, r); //
			graphics.beginFill(0xAA6622);
			graphics.drawRect(-r/2, -r/2, r, r);
			graphics.endFill();
			ColorMeIfImDead();
		}
	}

}